function uuid(len = 8){
  let chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  var uuid = '';
  for (var i = 0; i < len; i++){
    uuid += chars[0 | Math.random()*chars.length];
  }
  return uuid;
}

export { uuid }